package JLB_Chapter_04;

import java.util.Arrays;

// Repeat
public class code_04_10 {
    public static void main(String[] args) {
        int[] arr = new int[] { 1,2,3,4,5,6 };
        int[] newarr = Arrays.copyOfRange(arr,0,5);
        for (int row : newarr) {
            System.out.println(row + " ");
        }
    }
}
